//
//  UserOperationView.h
//  itboye_rjy_ios
//
//  Created by pro on 16/1/7.
//  Copyright © 2016年 mc. All rights reserved.
//

#import <UIKit/UIKit.h>

#define lineHeight SCREEN_HEIGHT / 16.0

typedef NS_ENUM(NSInteger, ZKUserViewType) {
    ZKUserViewLogin,        // 登陆
    ZKUserViewMsgLogin,     // 短信验证登陆
    ZKUserViewRegister,     // 注册
    ZKUserViewForgetPwd,    // 忘记密码
    ZKUserViewChangeEmail,  // 修改邮箱
    ZKUserViewChangeMobile, // 修改手机号
};

@interface UserOperationView : UIView

- (instancetype)initWithFrame:(CGRect)frame
                       titles:(NSArray *)titlesAry
                         type:(ZKUserViewType)type;

// 是否所有输入框都已经编辑了
- (BOOL)isAllTextFieldEdited;

// 点击注册时，获得手机，验证码，密码
- (void)getRegistrtInfo:(void(^)(NSDictionary *infoDic))infoBlock;

// 点击登录时，获得手机，密码
- (void)getLoginInfo:(void(^)(NSDictionary *infoDic))infoBlock;

// 点击短信登陆登录时，获得手机，密码
- (void)getMesLoginInfo:(void(^)(NSDictionary *infoDic))infoBlock;

// 点击重置密码时，获得手机，验证码，密码
- (void)getForgetPwdInfo:(void(^)(NSDictionary *infoDic))infoBlock;

// 点击修改邮箱时，获得邮箱，密码
- (void)getChangeEmailInfo:(void(^)(NSDictionary *infoDic))infoBlock;

// 点击修改手机号时，获得手机号， 密码， 验证码
- (void)getChangeMobileInfo:(void(^)(NSDictionary *infoDic))infoBlock;

@end
